package com.vclee.fast.config;

import org.slf4j.Logger;
import org.springframework.beans.factory.DisposableBean;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

@Component
public class AppMonitor implements ApplicationRunner, DisposableBean {
    private static final Logger logger = org.slf4j.LoggerFactory.getLogger(AppMonitor.class);

    @Override
    public void run(ApplicationArguments args) {
        logger.info("=============APPLICATION服务器启动成功。=================");
    }

    @Override
    public void destroy() {
        logger.info("=============APPLICATION服务器停止启动。=================");
    }
}
